package org.agent.dao.user;

import java.util.List;

import org.agent.pojo.User;
/*
 * 用户接口
 * 
 * @return
 * */

public interface UserMapper {
	/*
	 * 查询用户列表
	 * @param User user
	 * @return
	 * */
	public List<User> getUserList (User user); 
	/*
	 * 查询单个用户
	 * @param User user
	 * @return
	 * */
	public User getUser(User user);
	/*
	 * 增加用户
	 * @param User user
	 * @return
	 * */
	public int addUser(User user);
	/*
	 * 更新？查询？用户
	 * @param User user
	 * @return
	 * */
	public int modifyUser(User user);
	/*
	 * 删除用户
	 * @param User user
	 * @return
	 * */
	public int deleteUser(User user);
	/*
	 * 计算用户总行数
	 * @param User user
	 * @return
	 * */
	public int count(User user);
	/*
	 * 是否存在该用户，根据userCode，》=1存在，=0不存在
	 * @param User user
	 * @return
	 * */
	public int isExitLoginUser(User user);
	public User getLoginUser(User user);
}
